package com.tcoiss.log.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tcoiss.common.core.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 方案执行日志对象 scheme_execute_log
 * 
 * @author zw
 * @date 2021-05-06
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("scheme_log")
public class SchemeLog implements Serializable {

private static final long serialVersionUID=1L;


    /** 编号 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 方案名称 */
    @Excel(name = "方案名称")
    private String schemeName;

    /** 执行编码 */
    @Excel(name = "执行编码")
    private String executeNumber;

    private Integer executeType;

    /** 作业数量 */
    @Excel(name = "作业数量")
    private Integer workNum;

    /** 执行参数 */
    @Excel(name = "执行参数")
    private String executeParam;

    /** 执行状态 */
    @Excel(name = "执行状态")
    private Integer executeStatus;

    /** 异常作业 */
    @Excel(name = "异常作业")
    private String errorWork;

    /** 异常信息 */
    @Excel(name = "异常信息")
    private String errorMsg;

    /** 日志时间 */
    @Excel(name = "日志时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date logTime;

    /** 执行人 */
    @Excel(name = "执行人")
    private String executeor;

    /** 执行开始时间 *//*
    @Excel(name = "执行开始时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    *//** 执行结束时间 *//*
    @Excel(name = "执行结束时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;*/

    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();
}
